import { post_json ,get} from '@/http/axios'

const getArticle = (data) => {
  return post_json('/article/getAllArticle',data)
}
const getArticleDetail = (id) => {
  return get(`/article/getArticleDeail${id}`,"")
}
const createArticle = (data) => {
  return post_json('/article/creatArticle',data)
}
const getMyArticle = (data) => {
  return post_json('/article/getAriticleByUserID',data)
}
export default{
  getMyArticle,
  createArticle,
  getArticleDetail,
  getArticle
}